@model LuDC.CKEditor.Models.CKEditorSettingsPartRecord
@using Orchard.ContentManagement;

@{ Layout.Title = T("CKEditor Settings").ToString(); }

<fieldset>
    <legend>@T("CKEditor")</legend>
    <div>
        @Html.LabelFor(m => m.ContentsCss, @T("CSS stylesheet(s) for contents"))
        @Html.EditorFor(m => m.ContentsCss)
        @Html.ValidationMessageFor(m => m.ContentsCss, "*")
        <span class="hint">@T("Enter a space-separated list of stylesheet file names to use inside the CKEditor window (e.g. Site.css)")</span>
    </div>
    <div>
        @Html.LabelFor(m => m.ExtraPlugins, @T("Extra plugins to load"))
        @Html.EditorFor(m => m.ExtraPlugins)
        @Html.ValidationMessageFor(m => m.ExtraPlugins, "*")
        <span class="hint">@T("Enter a <strong>comma-separated</strong> list of plugin names to be enabled (e.g. 'stylesheetparser,devtools')")</span>
    </div>
	<div>
		@Html.LabelFor(m => m.Toolbar, @T("Toolbar"))
		@Html.TextAreaFor(m => m.Toolbar, new { @class = "html", cols = 80, rows = 10 })
		@Html.ValidationMessageFor(m => m.Toolbar, "*")
		<span class="hint">@T("Leave empty to have all plugins in the toolbar in the default order. Otherwise, use the standard CKEditor syntax, <strong>without</strong> enclosing everything in []")</span>
	</div>
    <div>
        @Html.LabelFor(m => m.ClearDefaultStyleSets, @T("Clear default styles"))
        @Html.EditorFor(m => m.ClearDefaultStyleSets)
        @Html.ValidationMessageFor(m => m.ClearDefaultStyleSets, "*")
        <span class="hint">@T("If you enable the 'stylesheetparser' plugin, you might want to use this to clear the default styles from the menu")</span>
    </div>
	<div>
		@Html.LabelFor(m => m.EnableAdvancedContentFilter, @T("Enable Advanced Content Filter"))
		@Html.EditorFor(m => m.EnableAdvancedContentFilter)
		@Html.ValidationMessageFor(m => m.EnableAdvancedContentFilter, "*")
		<span class="hint">@T("If you enable the 'Advanced Content Filter', content not enabled cannot be added as source code")</span>
	</div>
</fieldset>